package ae.pcfc.cldos.online.common.etksdb.domain.manager.provider;

import java.util.List;

import ae.pcfc.cldos.online.common.etksdb.dao.ClientDAO;
import ae.pcfc.cldos.online.common.etksdb.domain.Client;
import ae.pcfc.cldos.online.common.etksdb.domain.manager.ClientDOM;

/**
 * 
 * @author arosa
 *
 */
public class ClientDOMImpl implements ClientDOM {

	private ClientDAO clientDAO;
	
	public void setClientDAO(ClientDAO clientDAO) {
		this.clientDAO = clientDAO;
	}
	
	public Client getClientById(Long clientId){
		return clientDAO.getClientById(clientId);
	}
	
	public Long getClientIdByTrakheesId(String trakheesId){
		return clientDAO.getClientIdByTrakheesId(trakheesId);
	}
	
	/* (non-Javadoc)
	 * @see ae.pcfc.cldos.online.common.etksdb.domain.manager.ClientDOM#getAllActiveClients()
	 */
	public List<Client> getAllActiveClients(){
		return clientDAO.getAllActiveClients();
	}
}
